#include <QtCore>
#include <QApplication>
#include "lib/global.h"
#include "MainWindow.h"
#include "SystrayIcon.h"

QTimer gExtremeTimer;
QTimer gFastTimer;
QTimer gTimer;
QTimer gSlowTimer;

int main(int argc , char * argv[])
{
    QApplication app(argc , argv);
    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));

    //initial global timer
    gExtremeTimer.start(1000);		// 1 second
    gFastTimer.start(30000);		// 30 second
    gTimer.start(300000);		// 5 minite
    gSlowTimer.start(3600000);		// 1 hour


    SystrayIcon::getSystrayIcon();
    MainWindow mainwindow;
    mainwindow.show();
    return app.exec();
}
